package com.aaa.whj.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/18  14:30
 */
@Component //交于spring容器帮你创建该类的对象
public class MyQuartz {
//    @Scheduled(cron = "0/2 * * * * ?")
//    public void test01(){
//        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
//    }
}
